{ ***  cef_display_handler_capi.h  *** }

  PCefDisplayHandler = ^TCefDisplayHandler;

  // Implement this structure to handle events related to browser display state.
  // The functions of this structure will be called on the UI thread.
  TCefDisplayHandler = record
    // Base structure.
    base: TCefBase;

    // Called when a frame's address has changed.
    on_address_change: procedure(
        self: PCefDisplayHandler;
        browser: PCefBrowser;
        frame: PCefFrame;
        const url: PCefString); cconv;

    // Called when the page title changes.
    on_title_change: procedure(
        self: PCefDisplayHandler;
        browser: PCefBrowser;
        const title: PCefString); cconv;

    // Called when the browser is about to display a tooltip. |text| contains the
    // text that will be displayed in the tooltip. To handle the display of the
    // tooltip yourself return true (1). Otherwise, you can optionally modify
    // |text| and then return false (0) to allow the browser to display the
    // tooltip. When window rendering is disabled the application is responsible
    // for drawing tooltips and the return value is ignored.
    on_tooltip: function(
        self: PCefDisplayHandler;
        browser: PCefBrowser;
        text: PCefString): Integer; cconv;

    // Called when the browser receives a status message. |value| contains the
    // text that will be displayed in the status message.
    on_status_message: procedure(
        self: PCefDisplayHandler;
        browser: PCefBrowser;
        const value: PCefString); cconv;

    // Called to display a console message. Return true (1) to stop the message
    // from being output to the console.
    on_console_message: function(
        self: PCefDisplayHandler;
        browser: PCefBrowser;
        const message, source: PCefString;
        line: Integer): Integer; cconv;
  end;


